package simplefactory;

/**
 * Created by JiaJia on 2019/7/24 0024.
 */
public class VideoFactory {
    public Video getVideo(String type){
        if ("java".equalsIgnoreCase(type)){
            return new JavaVideo();
        }else if ("python".equalsIgnoreCase(type)){
            return new PythonVideo();
        }
        return null;
    }
}